﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Shapes;
using System.Windows.Media;

namespace 餐饮管理系统
{
	/// <summary>
	/// Interaction logic for App.xaml
	/// </summary>
    public partial class App : Application
    {
        private void b1_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            MainWindow mainWindow = (this.MainWindow as MainWindow);
            mainWindow.setStaffGrade(1);
            mainWindow.setMealGrade(1);
        }

        private void b2_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            // 在此处添加事件处理程序实现。
            MainWindow mainWindow = (this.MainWindow as MainWindow);
            mainWindow.setStaffGrade(2);
            mainWindow.setMealGrade(2);
        }

        private void b3_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            // 在此处添加事件处理程序实现。
            MainWindow mainWindow = (this.MainWindow as MainWindow);
            mainWindow.setStaffGrade(3);
            mainWindow.setMealGrade(3);
        }

        private void b4_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            // 在此处添加事件处理程序实现。
            MainWindow mainWindow = (this.MainWindow as MainWindow);
            mainWindow.setStaffGrade(4);
            mainWindow.setMealGrade(4);
        }

        private void b5_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            // 在此处添加事件处理程序实现。
            MainWindow mainWindow = (this.MainWindow as MainWindow);
            mainWindow.setStaffGrade(5);
            mainWindow.setMealGrade(5);
        }



  
    }
}